
package com.ziq.zcamp.bean.place

import com.ziq.zcamp.proguard.ProguardKeep

class AreaItem() : ProguardKeep {

    constructor(id : Long?, name : String?, sort : Int?, belong_id : Long? = null, capital_letter : String? = null,) : this(){
        this.id = id
        this.name = name
        this.sort = sort
        this.belong_id = belong_id
        this.capital_letter = capital_letter
    }

    var id : Long? = null
    var name : String? = null // 名字
    var sort : Int? = null //权重
    var ad_code : String? = null //地区编码
    var belong_id : Long? = null //belong_id	是	int64	上级id
    var capital_letter : String? = null //首字母

    override fun equals(other: Any?): Boolean {
        if(other is AreaItem){
            return other.id == this.id
        }
        return super.equals(other)
    }

    override fun hashCode(): Int {
        var result = id.hashCode()
        return result
    }

}

